import java.util.Scanner;

public class Xc {
	
	  public static void main (String[] args) { 
	  Scanner sc=new Scanner(System.in);
	  System.out.println("请输入数学成绩");
	  int num1=sc.nextInt();
	  System.out.println("请输入语文成绩");
	  int num2=sc.nextInt();
	  int num3=num1+num2;
	  int num4=num3/2;
	  System.out.println("总分："+num3+"平均分："+num4); }
	 
}
